import Vue from 'vue'
import App from './App'
import Store from './store'

// 在Vue原型上注册store，便于调用同一个store，this.$store
Vue.prototype.$store = Store

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue(App)
app.$mount()

export default {
  // 这个字段走 app.json
  config: {
    // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    pages: [
      '^pages/index/main',
      'pages/me/main',
      'pages/qa/main',
      'pages/recommend/main',
      'pages/detail/main',
      'pages/partner/main',
      'pages/add/main',
      'pages/add-vip/main',
      'pages/add-result/main',
      'pages/record/main',
      'pages/sponsor/main',
      'pages/cropper/main',
      'pages/address-edit/main',
      'pages/address-list/main',
      'pages/setting/main',
      'pages/coin/main',
      'pages/coin-release/main',
      'pages/coin-market/main',
      'pages/coin-market-detail/main',
      'pages/coin-history/main',
      'pages/convert-coin/main',
      'pages/mobile/main',
      'pages/mobile-edit/main',
      'pages/mobile-edit-step2/main',
      'pages/invite-poster/main',
      'pages/connect/main',
      'pages/detail-editor/main',
      'pages/invite/main',
      'pages/auth/main'
    ],
    window: {
      navigationBarBackgroundColor: '#ffffff',
      navigationBarTitleText: '',
      navigationBarTextStyle: 'black',
      backgroundColor: '#eeeeee',
      backgroundTextStyle: 'light',
    },
    // tabBar: {
    //   color: '#515151',
    //   selectedColor: '#e0382f',
    //   backgroundColor: '#ffffff',
    //   borderStyle: 'black',
    //   list: [{
    //     pagePath: 'pages/index/main',
    //     text: '首页',
    //     iconPath: '/static/images/list.png',
    //     selectedIconPath: '/static/images/list-c.png'
    //   }, {
    //     pagePath: 'pages/add/main',
    //     text: '我要派奖',
    //     iconPath: '/static/images/add.png',
    //     selectedIconPath: '/static/images/add-c.png'
    //   }, {
    //     pagePath: 'pages/me/main',
    //     text: '我的',
    //     iconPath: '/static/images/user.png',
    //     selectedIconPath: '/static/images/user-c.png'
    //   }]
    // },
  }
}
